home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / DTP / DTP_TEX / H220.ZIP / WP2X110.ZIP / HINTS < prev    next >
Text File  |  1991-08-18  |  2KB  |  58 lines

  1. Hints for compiling on various platforms
  2.  
  3. -------------------------------------------------------------------------------
  4. UNIX with gcc
  5.  
  6. gcc -v -ansi -funsigned-char -DUNIX -DWP2X_DIR=\"/usr/local/lib/wp2x\"
  7.     -o wp2x wp2x.c
  8.  
  9. -------------------------------------------------------------------------------
  10. Amiga, courtesy of Dale Gold (dgold@basso.actrix.gen.nz)
  11.  
  12. # Makefile for SAS 5.10 on the Amiga.
  13. #
  14. # -b0   No base relative addressing
  15. # -cu   All char unsigned
  16. # -L    Automatically link
  17. # -DNO_CONST compiler does not support `const' qualifier
  18. wp2x:   wp2x.c lmkfile
  19.     lc -b0 -cu -L -DNO_CONST -DAMIGA wp2x.c
  20. -------------------------------------------------------------------------------
  21. IBM PC / Turbo C 2.0, suggested by Raymond Chen (raymond@math.berkeley.edu)
  22.  
  23. tcc -mt -G -K -O -f- -r -Z -p -DCdecl=cdecl -DMSDOS wp2x.c
  24.  
  25.                 -mt = tiny model
  26.                 -G  = compile for speed
  27.                 -K  = unsigned characters
  28.                 -O  = optimize jumps
  29.                 -f- = no floating point
  30.                 -r  = register variables
  31.                 -Z  = optimize register usage
  32.                 -p  = pascal calling convention
  33.      -DCdecl=cdecl  = for tagging variadic functions
  34.  
  35. Note, however, that setting the -O switch means that the killer switch()
  36. statement causes TC2.0 to act like it's gone out to lunch.  It hasn't;
  37. it's chugging away, albeit incredibly slowly.
  38. -------------------------------------------------------------------------------
  39. IBM PC / MSC 6.0, suggested by Raymond Chen (raymond@math.berkeley.edu)
  40.  
  41. cl -AS -Gr -J -Ozax -DCdecl=_cdecl -DMSDOS wp2x.c
  42.  
  43.             -AS   = small model
  44.             -Gr   = use fastcalls calling convention
  45.             -J    = unsigned chars
  46.             -Ozax = maximum optimization
  47.    -DCdecl=_cdecl = for tagging variadic functions
  48. -------------------------------------------------------------------------------
  49. IBM PC / MS C 5.1, suggested by Richard Reiner <rreiner@nexus.yorku.ca>
  50.  
  51. cl -AS -Gc -J -Ox -DCdecl=cdecl -DMSDOS wp2x.c
  52.  
  53.               -AS = small model
  54.               -Gc = pascal calling convention
  55.               -J  = unsigned chars
  56.               -Ox = maximum optimization
  57.     -DCdecl=cdecl = for tagging variadic functions
  58.